cmake_minimum_required(VERSION 3.16)
project(Diagram)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_AUTORCC on)
set(CMAKE_AUTOUIC on)
set(CMAKE_AUTOMOC on)

find_package(Qt5 REQUIRED Gui Widgets Core Concurrent
        PrintSupport Svg Charts Sql
        )

file(GLOB sources ./*)

add_executable(${PROJECT_NAME}
        ${sources}
        )

target_link_libraries(${PROJECT_NAME}
        Qt5::Core Qt5::Gui Qt5::Widgets
        )